Finally figured out the problem with the missing token-macro dep.
This was harmless for many plugins, but completely broke testing of some, such as nectar-rbac.
Seems to have been caused by a missing call to hpi:resolve-test-dependencies after changing deps.
This meant that TestPluginManager ignored the plugin list crafted by HudsonTestCase/JenkinsRule.
(Seems like a fragile design. Would be better for TPM to just consider the hash of $JENKINS_HOME/plugins/.)