anchor.diff:  -export([all/0, init_per_suite/1, end_per_suite/1, init_per_testcase/2,
       end_per_testcase/2]).
   
  --export([rest_token_auth/1, rest_cert_auth/1]).
  +-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() -> [rest_token_auth].
  +all() -> [token_auth, internal_error_when_handler_crashes].
   
   -define(MACAROON, "macaroon").
   
  
positive.code:     Loc3 = proplists:get_value("location", Headers3),
      ?assertMatch({ok, "404", _, _}, ibrowse:send_req(Loc3, [], get, [], [KnownCertOpt])).
  
  %%%===================================================================
  %%% SetUp and TearDown functions
  %%%===================================================================
  
negative.code:     ?assertMatch({ok, "401", _, _}, AuthFail),
      ?assertMatch({ok, "404", _, _}, AuthSuccess).
  
  cert_auth(Config) ->
      % given
      [Worker | _] = ?config(op_worker_nodes, Config),
      Endpoint = rest_endpoint(Worker),
  