Add a test and set up travis-ci

Closes #6