anchor.diff:      Workers = ?config(op_worker_nodes, Config),
       ssl:start(),
       hackney:start(),
  -    test_utils:mock_new(Workers, op_space),
  -    test_utils:mock_expect(Workers, op_space, authorize, fun(_, _) -> true end),
  +    test_utils:mock_new(Workers, space_middleware),
  +    test_utils:mock_expect(Workers, space_middleware, authorize, fun(_, _) -> true end),
       mock_provider_id(Config),
       Config;
   init_per_testcase(_Case, Config) ->
  
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:     % given
      Workers = [Worker | _] = ?config(op_worker_nodes, Config),
      Endpoint = rest_endpoint(Worker),
      test_utils:mock_expect(Workers, space_middleware, get, fun test_crash/2),
  
      % when
      {ok, Status, _, _} = do_request(Config, get, Endpoint ++ "spaces"),
  