added test cases for preprocessing