using quasi dependency injection to load the testing cert when running tests.  Fixed the running of several other tests.