The Bernstein test helps to determine if chest or back pain is coming from the esophagus or acid reflux.