Adding back the addition of documents to the results array for testing