Begin of work to correct the test algorithm.