Add test exposing UnitOfWork merge bug

I hope that I'm doing something wrong and that this is not a bug ...
@stof I've updated the test to a valid use case