Test the applyfilters function.