throw exception when the GR returns 200 OK with null body
Reworked unit tests and added a few tests to getEntity method.