Testing and fixing grads