correction tests algorithme