add test for preprocess phase