some work on getDocumentTest