Fix test failure on Travis environment