It would be great for packages (such as AI2) to add unit tests that are accessible to administrators. But we don't want such tests for be in memory all the time (like the current console commands).

There should be a way for a package to define a console function that is stored in some well-known table (Arc.code) or something. At runtime we load up the function and run it.