fixed problems in test cases