Test code for filtering