Checking in similarity method for objects and respective test