Adding initial unit tests and travis-ci config.