If your healthcare provider thinks you have esophageal cancer, you'll need tests. You may have imaging tests and a biopsy.