add `Document.insertLines` with test