anchor.diff:      % given
       Workers = [Worker | _] = ?config(op_worker_nodes, Config),
       Endpoint = rest_endpoint(Worker),
  -    test_utils:mock_expect(Workers, op_space, get, fun test_crash/2),
  +    test_utils:mock_expect(Workers, space_middleware, get, fun test_crash/2),
   
       % when
       {ok, Status, _, _} = do_request(Config, get, Endpoint ++ "spaces"),
  
positive.code:     % given
      Workers = [Worker | _] = ?config(op_worker_nodes, Config),
      Endpoint = rest_endpoint(Worker),
      test_utils:mock_expect(Workers, op_space, get, fun(_, _) -> throw(?ERROR_BAD_VALUE_JSON(<<"dummy">>)) end),
  
      % when
      {ok, Status, _, Body} = do_request(Config, get, Endpoint ++ "spaces"),
  
negative.code:     Case =:= custom_error_when_handler_throws_error
  ->
      Workers = ?config(op_worker_nodes, Config),
      test_utils:mock_unload(Workers, space_middleware),
      unmock_provider_id(Config),
      hackney:stop(),
      ssl:stop();
  