Added unit tests and Travis CI integration.