fixed errors in test cases