Test for DocumentService