Hook up the test mode authentication.
Merge pull request #1063 from guardian/fix-tests-needing-authentication

Hook up the test mode authentication.