Using get_max_var_from_clause in regression test