fixed failing test cases.