Update unit test and add .travis.yml.