reject updates to deleted cases and change tests to reflect that

also rearranged the precedence of case doc checks to check domains before anything else