Add admin environment for runnning tests for admin commands.

Fixes #862.

This only handles tox, not buildbot.