added tests for filter