SERVER-8748: make test more robust