finish clean up of test_inverse_opt