Add unit tests and TravisCI config.