Fix tests and add travis support

... Also change error translator to return message instead of code if available

Note: Please enable travis for this repository.