Change DeepCopy to ShallowCopy in gradient filter test