Updated Travis CI and fixed tests.