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

Add run-tests.sh tool to run the tests