Added LoggerStub to test suite.

The LoggerStub makes it easier to run test cases against logging
objects, as it simply stores the log messages passed to it.
Added test cases to test existing logging calls.