Test retries and promises