unittest for solve