Refs #3456, only save one broken file when doing redundant checks & add unit test for checks.