revert validity testing