Added test for hashCode.