Updated NegativePatterns test case: proper precedence rules