Add tests for filter