Add tests and Travis configuration
Merge pull request #1 from paulfurley/add-tests

Add tests and Travis configuration