Add test to ensure data changes actually happen

This test passes without any modifications. It verifies that the snapshot handed back by the transaction() callback actually has had the relevant changes applied to it.