Add support for Travis and fixed som errors in the tests