Added test on when get a number the loop stop