Added mocked hashing for tests