Issue #16: Add unit tests and Travis CI integration.