Fix unit tests and add support for Travis CI