doc and test for `EditSession.length`