Testing for Membership to the IFRA and the NBU Classes of Distributions