test revert flow.