Added test for equals method overide