tests for filter