test that should pass but does not: updating entities

Hi @Vertice 

@ckiss seems to have found an issue when entities are updated.
It seems to me that the test I added here should pass but does not. It's an issue we see in our app.
Can you please have a look ?

Cc @darsee