Hashing methods + equality unit-tests