pattern test cases