gtest for 1D function minimization