Fix tests and add travis YML.