Add gradient test to compile tests