add build step to pretest