add some tests for filtering.