Improve tests around ternary operator

Unsure what was causing some of the conflicts between the ternary rule
and class / module names (with double colons). This should be better now.