More test cases for pattern helper.