Solver test consolidate

Hi @qipeng, I combined all the solver tests into one file (`test_gradient_based_solver.cpp`) to avoid so much redundant code.