ext4: add self-testing infrastructure to do a sanity check