Add some tests and travis.yml