Add test case for logger.