In a patient with dysphagia and manometry showing diffuse esophageal spasm or ineffective motility plus positive pH study, how long should GERD be treated before reconsidering the diagnosis of achalasia, and what additional testing should be pursued?