Added tests and travis.yml