Add test exposing UnitOfWork merge bug

I hope that I'm doing something wrong and that this is not a bug ...
note that Doctrine can be configured to cascade the merge operation, which could help you in this case