fixed DeleteDocumentRequest
added test for deleting a document