add `Document.revertDeltas` with test