Add unit tests using mocks. CIM response also checks and parses ErrorResponse