changed the test_grad call in util to match the test_grad call in v1.3