Fixed a bug in unit test.  Refs #8332.