Added unit test.  Refs #8109.