Add test cases applyFilter()