Fix failed test cases.