We have almost as many different ways of testing management commands as we have management commands. The real solution to this is to refactor all the management commands and put most of their functionality behind an API, but that's out of scope for this branch.