Travis setup

Create setup for Travis and fix tests.