Fixed tests and added travis.yml