tests for make_request_handler