Fix unit test. Refs #19958.