How is a thyroid function test performed?