Fix entity denormalization for replicated entities with revisions.
Uncomment commented tests.