Add more test cases for filtering and intersection.