anchor.diff:      IsUserAgent = fun(_, _) -> true end,
   
       ok = test_util:meck_new(MeckModules),
  +    ok = meck:expect(cowboy_req, body, Body),
       ok = meck:expect(cowboy_req, cookie, GetCookie),
       ok = meck:expect(cowboy_req, header, Header),
  +    ok = meck:expect(cowboy_req, method, Method),
  +    ok = meck:expect(cowboy_req, parse_header, ParseHeader),
  +    ok = meck:expect(cowboy_req, path_info, PathInfo),
       ok = meck:expect(cowboy_req, peer, Peer),
  -    ok = meck:expect(cowboy_req, parse_header, ParseHeader),
  -    ok = meck:expect(cowboy_req, method, Method),
  -    ok = meck:expect(cowboy_req, body, Body),
  -    ok = meck:expect(cowboy_req, path_info, PathInfo),
       ok = meck:expect(cowboy_req, set_resp_body, fun(_, Req) -> Req end),
       ok = meck:expect(cowboy_req, set_resp_cookie, fun(_, _, _, Req) -> Req end),
       ok = meck:expect(cowboy_req, set_resp_header, SetHeader),
  
positive.code: 
          Test  = fun({Request, ExpResult}, _) ->
                          io:format("testing with request ~p~n",[Request]),
                          {Result, Request, _} = watts_http_api:malformed_request(Request,
                                                                              State),
                          io:format("got result ~p, expecting ~p~n",[Result, ExpResult]),
                          ?assertEqual(ExpResult, Result),
                          ok
                  end,
  
negative.code: malformed_request_test() ->
      {ok, Meck} = start_meck(),
      try
          Requests = [
                      % GOOD request
                      {#{ path_info => [<<"v1">>,<<"oidcp">>],
                          header => [],
                          method => <<"GET">>,
  