adding integration test for Document.find