fix failed test cases