this test could use a loop and the nbCodeTries value - in case we change the default value