anchor.diff:  end_per_suite(Config) ->
       test_node_starter:clean_environment(Config).
   
  +init_per_testcase(internal_error_when_handler_crashes, Config) ->
  +    Workers = ?config(op_worker_nodes, Config),
  +    ssl:start(),
  +    ibrowse:start(),
  +    test_utils:mock_new(Workers, rest_handler),
  +    Config;
   init_per_testcase(_, Config) ->
       ssl:start(),
       ibrowse:start(),
       mock_gr_certificates(Config),
       Config.
   
  +end_per_testcase(internal_error_when_handler_crashes, Config) ->
  +    Workers = ?config(op_worker_nodes, Config),
  +    test_utils:mock_unload(Workers, rest_handler),
  +    ibrowse:stop(),
  +    ssl:stop();
   end_per_testcase(_, Config) ->
       unmock_gr_certificates(Config),
       ibrowse:stop(),
  
positive.code: %%% API
  %%%===================================================================
  
  rest_token_auth(Config) ->
      % given
      [Worker | _] = ?config(op_worker_nodes, Config),
      Endpoint = rest_endpoint(Worker),
  
negative.code: -export([all/0, init_per_suite/1, end_per_suite/1, init_per_testcase/2,
      end_per_testcase/2]).
  
  -export([token_auth/1, cert_auth/1, internal_error_when_handler_crashes/1]).
  
  %todo reenable rest_cert_auth after appmock repair
  -performance({test_cases, []}).
  all() -> [token_auth, internal_error_when_handler_crashes].
  
  -define(MACAROON, "macaroon").
  
  