doc the `EditSession.document` and test setting it as well as getting