(GH-12) Add tests for ternary conditional operators.
(GH-12) Fix handling of ternary conditional operators.