FIx failing tests because of operator precedence