Add test cases for Object equals, hashCode and Comparable interface.