Fix some test cases fail.