Fixed tests in Travis CI environment