Add unit test for wrong class in logger for LoggerFactory