add .travis.yml and test.cpp