X rays, ultrasound, and CT scans can produce images of the abdomen. These tests can help make the diagnosis when other diagnostic tests are not conclusive.