anchor.diff:                                                       "X_CHEF_id_CHEF_X+asc"
                                                end),
                 {IsMalformed, _Req1, State} =
  -                  chef_rest_search_resource:malformed_request(req_mock, #state{}),
  +                  chef_rest_search_resource:malformed_request(req_mock, make_state()),
                 ?assertEqual(false, IsMalformed),
                 ?assertEqual("testorg", State#state.organization_name),
                 SolrQuery = State#state.solr_query,
  
positive.code:                                                      "X_CHEF_id_CHEF_X+asc"
                                               end),
                {IsMalformed, _Req1, State} =
                    chef_rest_search_resource:malformed_request(req_mock, #state{}),
                ?assertEqual(false, IsMalformed),
                %% FIXME: this is a record defined in chef_solr
                SolrQuery = State#state.solr_query,
  
negative.code:                 solr_time = 0.0,
                  batch_size = 5
  }).
  
  make_state() ->
      #state{start_time = now(),
             resource = "chef_rest_search_resource",
             batch_size = 5,
             solr_url = "http://solr_url.local",
             estatsd_server = "127.0.0.1",
             estatsd_port = 3365,
             hostname = net_adm:localhost(),
             request_type = "search.get"}.
  %% /FIXME
  
  malformed_request_test_() ->
  