Fix strage test failure in Travis environment