Update test scripts to pass Travis CI build.