test: add tests for filter