add test for filter