For reference, I worked for 4 months at an internship in Massachusetts in the summer of 2016. I'm a Canadian citizen/resident, and don't pass the substantial presence test for 2016.
Is there anywhere to include the possibility that I overpaid for Medicare and/or Social Security Tax in my federal or state (Massachusetts) tax? Or should I be using it as a deductible on my Form 1040NR-EZ?
I've seen that workers on a J1 visa are exempt from these taxes also, but is there any analogous rule for someone on a TN visa if they don't pass the substantial presence test?