add a ternary function test