For married taxpayers, the law tests the homeownership history of both the home buyer and his/her spouse. For example, if you have not owned a home in the past three years but your spouse has owned a principal residence, neither you nor your spouse qualifies for the first-time home buyer tax credit.