Fixed #19: Connection errors are now also picked up with getRestConsumeError
Added unit tests for regression testing of issue #19