Wrote tests for logging.