Tested getAllDocumentsFix: added test to verify the fix works