run the test code only when it is meant to be