Make sure we test side effect in condition, lhs and rhs of ternary