readding gradient test