Fix running tests on Travis CI.