Added test methods for operator precedence