This is enough to assert that the deep copy worked (compares instances in memory):

```php
$this->assertNotSame($a->b, $a2->b);
```

No need for the `->id` property.

I tested locally, and without your fix it indeed fails.