Barium tests are used to help see the outline of the upper parts of the gut (gastrointestinal tract) such as the gullet (oesophagus), stomach and upper gut (small intestines). They are also used to image the lower parts of the gastrointestinal tract such as the colon (large intestine).