(refs #7365) Unit test for the bug