more robust retry mechanism for LD tests