Add ternary tests