test hash& equals overrides test