Adds tests and Travis CI integration