Tests for #179

Add tests for the extended ternary operator (issue #179)