Add the unittest of logger.