Added test to assert ternary operator is working

Part of #187 investigation