test cases corrected