sums and differences of gradients now tested