Added some unit tests, and travis yml for CI