Tests for filter.