(A) or (B)(iii) is spun off to another employer and the spun-off plan continues to satisfy the requirements of— (i) subparagraph (A)(i) or (B)(iii)(II), whichever is applicable, if the original plan was still within the 3-year period described in such subparagraph at the time of the spin off, and (ii) subparagraph (A)(ii) or (B)(iii)(III), whichever is applicable, the treatment under subparagraph (A) or (B) of the spun-off plan shall continue with respect to such other employer. (2) Testing of defined contribution plans (A) Testing on a benefits basis A defined contribution plan shall be permitted to be tested on a benefits basis if— (i) such defined contribution plan provides make-whole contributions to a closed class of participants whose accruals under a defined benefit plan have been reduced or eliminated, (ii) for the plan year of the defined contribution plan as of which the class eligible to receive such make-whole contributions closes and the 2 succeeding plan years, such closed class of participants satisfies the requirements of section 410(b)(2)(A)(i) (determined by applying the rules of paragraph (1)(I)), (iii) after the date as of which the class was closed, any plan amendment to the defined contribution plan which modifies the closed class or the allocations, benefits, rights, and features provided to such closed class does not discriminate significantly in favor of highly compensated employees, and (iv) the class was closed before April 5, 2017, or the defined benefit plan under clause (i) is described in paragraph (1)(C) (as applied for purposes of paragraph (1)(B)(iii)(IV)). (B) Aggregation with plans including matching contributions (i) In general With respect to one or more defined contribution plans described in subparagraph (A), for purposes of determining compliance with subsection (a)(4) and section 410(b), the portion of such plans which provides make-whole contributions or other nonelective contributions may be aggregated and tested on a benefits basis with the portion of one or more