test whether data is corrupt