Implement getting of all documents from collection and cover it with tests.