Fixed up tests and added .travis.yml