Added test and travis.yml