Fixed grammar: XOR has precedence over OR
More tests