Fix tests and add travis CI support

We can now run tests on travis, if you enable travis for this repository.

See test result: https://travis-ci.org/karenc/services/builds/19339087