Add a test and set up travis-ci