measure relative error in gradient test