Add corrupt flag test.