Fix tests, add travis support.