add test for TernaryExpression

Just to mention this is outdated.