add simple test code and Travis CI YAML file