Fix test case.
Add another (failing) test case.
Don't divide gradient by number of samples.
Lower desired accuracy.