gradent tests updated for linear