Added a 2d optimization problem and repaired some solver unittests