test retry logic