Fixed failing tests by adding an ILoggerFactory