testing reverts and rollbacks