Fixed tests and added travis setup