Add tests & TravisCI support

This PR adds tests for the project and TravisCI support.

It will close #3 and close #4.