Tighten test names.

+review REVIEW-5214
Make withId(), hasPlugin() etc. work for qualified and unqualified “privileged” names regardless of how the plugin was applied.

+review REVIEW-5214