fixed test cases.