Some unit tests and config for Travis-CI.