add tests for filter