added test for simple trinary operation (failing)