Add retry to tests.