added sign and phi_approx tests for higher order autodiff