Fix code for work with ternary tests #190