Fix REST client on error

Enhance REST Client unit tests to detect it.

* Remove unexisting reference in a model