add nb max evaluations test in line search