Test ternary operators [TDD]