added test code for gradient and low-pass filter