added test for discrete filter