Added test for the filter factory