Tax treaty and resident filing status
I am a nonresident alien in the US on a student visa since 1998. Due to the substantial presence test I have been applying as a resident alien for tax purposes since the 2003 tax year. I got married in 2005, so for 2005 I filled the form 1040EZ as "married, filing jointly". I intend to do the same this year. However, I came to know from a friend that even though I am a resident alien for tax purpose, I can still choose to claim tax treaty benefits, since the treaty between Pakistan (my home country) and US allows for an unlimited benefit of $5000 (Treaty article XIII(1)). This is contrary to most other countries that have a limit of 5 years, in which case the treaty benefit generally expires at the same time as the ability to file as a non-resident alien.
I was particularly intrigued because while I have been filing federal return as a resident alien, I have been filing my MA tax return as a non-resident alien (living in a dorm on campus leads to the nonresident alien claim). In doing so, I have been able to successfully claim the $5000 exemption (line 4 of Schedule Y).
Does anyone know if I can claim the $5000 exemption on the federal forms in addition to the $16900 federal exemption?