fixed race condition in bulk/all docs test