Fixed unit test. Refs #7789.