Standard imaging tests for gastric conditions include upper gastrointestinal series (UGI), ultrasounds, MRIs, CT scans and X-rays. For an even clearer picture of the gastrointestinal tract, a barium swallow or barium enema may be used in conjunction with an X-ray.