add test for array.length and init
Make sure we test side effect in condition, lhs and rhs of ternary