add `Document.removeLines` with test