Fix tests and add travis support

... Also change error translator to return message instead of code if available