revert test function