is held— (I) in the case of an acquisition with respect to a domestic corporation, by former shareholders of the domestic corporation by reason of holding stock in the domestic corporation, or (II) in the case of an acquisition with respect to a domestic partnership, by former partners of the domestic partnership by reason of holding a capital or profits interest in the domestic partnership, or (ii) the management and control of the expanded affiliated group which includes the entity occurs, directly or indirectly, primarily within the United States, and such expanded affiliated group has significant domestic business activities. (3) Exception for corporations with substantial business activities in foreign country of organization A foreign corporation described in paragraph (2) shall not be treated as an inverted domestic corporation if after the acquisition the expanded affiliated group which includes the entity has substantial business activities in the foreign country in which or under the law of which the entity is created or organized when compared to the total business activities of such expanded affiliated group. For purposes of subsection (a)(2)(B)(iii) and the preceding sentence, the term substantial business activities shall have the meaning given such term under regulations in effect on May 8, 2014, except that the Secretary may issue regulations increasing the threshold percent in any of the tests under such regulations for determining if business activities constitute substantial business activities for purposes of this paragraph. (4) Management and control For purposes of paragraph (2)(B)(ii)— (A) In general The Secretary shall prescribe regulations for purposes of determining cases in which the management and control of an expanded affiliated group is to be treated as occurring, directly or indirectly, primarily within the United States. The regulations prescribed under the preceding sentence shall apply to periods after May 8, 2014. (B) Executive officers and senior management Such regulations