Testing squared loss gradient