Performing a TSH test does not require any particular restrictions.
So you don't have to be fasting.