[Filter] Filter helper and test case