Fixed test from refs #22782.