Construct api client at runtime for easier testing
Add admin and sessions so tests can login() to the site
Require admin before you can issue a badge
More tests; better error reporting