Follow-up of request #39332 and request #41431
The filename-pattern end-to-end test for Document plugin sometimes fails because when fetching all versions of a document, it gets only 7 versions instead of the expected 8. In reality, we don't really care about the precise number, we just want to assert that there are more than 5. Adjusting the test this way should make the test more robust.