added test for documents