fix test failed on Ubuntu