Moved LoggerContext configuration.

Moved the retrieval of the `LoggerContext` from class variables configured in the test `setUp()` to local variables in the actual tests.
This had been seen on a few other tests previously, and if it continues to be a problem then we should move all of the `LoggerContext` variables to use this pattern.
It may become more prevalent when we Springify everything, as this seems to have something to do with actual context initialization.