Add some testing of hashCode consistency