fix test failure for travis