fix tests and add travis file