add test for TernaryExpression