Test that the addFilter correctly applied before calling removeFilter.