add function test as test_solve