fixed some test cases.