fix test script for Travis CI