fixed gradient test with a specific class