Add support (and test) for selecting a tag instead of a whole group.