Add tests & TravisCI support

This PR adds tests for the project and TravisCI support.