fix the tests and setup travis