Add some unit tests and travis-ci.org job definition