test case hashCode method.