Remove unused functions and enable the test_solve test case.