fix test case under Unix