added tests for apple filter