added unit test ensuring resource does not throw when response.data is the resource instance