Added tests to test the Logger.stats function.