For purposes of computing the taxable income of the estate or trust and the taxable income of a spouse to whom Section 682(a) of the Internal Revenue Code (relating to income of an estate or trust in the case of divorce, etc.) applies, that spouse shall be considered as the beneficiary for purposes of this chapter.