fix test cases under 5.18