added tests for filter()