Fixed test failures introduced in e716518ad29898fb25c820023aaf2fdd1c9eb4af

refs #20761