Fixed #22431 -- Prevented TestCase from swallowing integrity errors.

POC with missing docs.