Add retries to cartridge test for rest API