is not an organic disease, but it has more a psychological pattern. It is true that constipation
could give abdominal pain
, however, you can do something to overcome it like drinking more water, eating more fiber foods, exercising (running), etc.
It is good that you are going to be tested for your actual pain problems, so, it would be more easy to find out the real source and fight it accordingly.
All the best!