Testing ternary operator