Test mg_set_request_handler() for patterns