added preprocess for testling and faster tests