Support unit tests and add a travis-ci config