Fixed #23162 -- Updated tests with the new method name

Updated tests with the new method name and still error to silenced
the warning for the old method name.