Add test exposing UnitOfWork merge bug

I hope that I'm doing something wrong and that this is not a bug ...
removing this check looks wrong to me. It is expected to enforce using managed entities