Added a test to check the data integrity.