fix test case problems