improve OpenDocumentTest