Add test for choosing @id over @term when value isn't a term.