Ternary between and tests