max_query_num test