Add tests for DownsampleFactorMaxGradGrad

Add tests on top of gh-1564.
I think gh-1564 should be merged first, then this one.