Numerical tests for approx_gradient function?