Adding $response->toArray() tests