Fixed unit test. Refs #8744.