The doctor will take a detailed history of the patient and ask questions about the symptoms.After a careful physical exam the doctor may perform tests such as endoscopy, X-ray tests, CT scan, or MRI to gain more information about whether there is an abnormal growth, where the growth is located, and whether it has spread.In some cases a tissue sample, called a biopsy, may be needed.