Fixed broken test from da160d440f; refs #23418.