Some tests and CI

I added support for Travis-ci and some basic tests