pattern test