removed obsolete test, as we will no longer flush if no documents were indexed