better unittest for solve