Added testHashCode() test.