Add derivative_test parameter to solver