Increase max_documents to 50k
fix test for max_documents config