Fixed unit test. Refs #7322.