Fix incorrect paths in preprocess.js

## Fix incorrect paths in preprocess.js

The test directory is incorrect in preprocess, which makes tests not run.