add `Document.allLines` getter with test case