add some tests for preprocess