test for revert