Nasogastric lavage is another test that may help determine the source of bleeding. A tube is inserted through the nose and into the stomach for this test. The contents of the stomach are removed and tested for blood.