hash code unit tests