Jon, most likely you followed a link to MDLQA-127 from another QA test, perhaps
MDLQA-276. Since the tests were written we've realised it's not a good idea to include links to other tests in the description!
As for a publishing teacher role, admins can easily create one. However, I think as far as possible that the QA tests should test default settings, which is why Jerome changed the test to manager. Or are you suggesting that the default teacher role should have moodle/course:publish set to allow?