fix varname rule with tests