Add some tests and a Travis CI config