Add some much needed tests
Add support for travis-ci