Fixed all test cases.