More efficient gradient computation in test.m