Added tests for utils.retry_loop