Corrected test assertion from refs #21403.