Fixing assert.equals() for objects