adding test for data consistency. looks fine