steepest ascent works for test fxn