The only way to test for symptoms of stomach or esophageal cancer is to undergo an upper endoscopy, a test that can be invasive, cost thousands of dollars and has a small percentage of success in actually finding a tumor.