add test and travis.yml for auto test