Added gradients check test for autodiff package
Adding digits test, and more debugging