A barium swallow test is used to look for problems in the throat (esophagus) and upper parts of the gastrointestinal tract. When a thyroid problem is making a person feel like they're having trouble swallowing, a barium swallow test can help figure out what's wrong.