I am from Singapore. I arrived in the US on Dec 19 2001 on a F1 visa. I completed both my Bachelors in Fall 2004 and Masters in Spring 2006. From January 2006 till April 2006, I was working as a research assistant. There is a short period when I have not been working. I have been on OPT since Jun 30 2006. I have been working on OPT since then.(For the entire year of 2006, I have been paying Social Security and Medicare, both as a research assistant and currently at my job). Also, I have been on my company's 401K plan since November. I started my H1 visa on Jan 1 2007.
Do I qualify as a resident for tax purposes? If so, do I still get back the taxes I paid for Social Security and Medicare? Also, what forms do I need to fill out for tax purposes given my situation?