Added tests for ternary operator [TDD]