So you should continue to eat gluten containing foods, even if they hurt your stomach, for just the period of time leading up to the test, so that you can get the appropriate results and diagnosis, if that indeed is your situation. 