Add a test for ternary