tests for data hashing functionality