corrected problems in test cases