Fix regressed test.

Refs #10004.