Fix some test cases.