using pretest for building test application