added a pretest npm script