Regression tests for line search algorithms