add `Document.insertInLine` with test

TODO: we should test the difference between `insert` and `insertInLine`
.. once we figure it out...