add test and travis.yml.