diff --git a/core/modules/system/tests/modules/logger_with_config/logger_with_config.info.yml b/core/modules/system/tests/modules/logger_with_config/logger_with_config.info.yml
new file mode 100644
index 0000000000..3f2c711cb4
--- /dev/null
+++ b/core/modules/system/tests/modules/logger_with_config/logger_with_config.info.yml
@@ -0,0 +1,5 @@
+name: logger_with_config
+type: module
+core: 8.x
+package: Testing
+version: VERSION
diff --git a/core/modules/system/tests/modules/logger_with_config/logger_with_config.services.yml b/core/modules/system/tests/modules/logger_with_config/logger_with_config.services.yml
new file mode 100644
index 0000000000..36f59c8eed
--- /dev/null
+++ b/core/modules/system/tests/modules/logger_with_config/logger_with_config.services.yml
@@ -0,0 +1,6 @@
+services:
+  logger.with_config:
+    class: Drupal\logger_with_config\Logger\LoggerWithConfig
+    arguments: ['@config.factory']
+    tags:
+      - { name: logger }
diff --git a/core/modules/system/tests/modules/logger_with_config/src/Logger/LoggerWithConfig.php b/core/modules/system/tests/modules/logger_with_config/src/Logger/LoggerWithConfig.php
new file mode 100644
index 0000000000..12ed0856c5
--- /dev/null
+++ b/core/modules/system/tests/modules/logger_with_config/src/Logger/LoggerWithConfig.php
@@ -0,0 +1,30 @@
+<?php
+
+namespace Drupal\logger_with_config\Logger;
+
+use Drupal\Core\Config\ConfigFactory;
+use Drupal\Core\Logger\RfcLoggerTrait;
+use Psr\Log\LoggerInterface;
+
+class LoggerWithConfig implements LoggerInterface {
+
+  use RfcLoggerTrait;
+
+  /**
+   * The config factory.
+   *
+   * @var \Drupal\Core\Config\Config
+   */
+  protected $config;
+
+  public function __construct(ConfigFactory $configFactory) {
+    $this->config = $configFactory->get('foo.bar');
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function log($level, $message, array $context = []) {
+  }
+
+}
diff --git a/core/tests/Drupal/KernelTests/Core/Cache/CacheFastBackendWithBrokenConfigurationTest.php b/core/tests/Drupal/KernelTests/Core/Cache/CacheFastBackendWithBrokenConfigurationTest.php
new file mode 100644
index 0000000000..ab391c2700
--- /dev/null
+++ b/core/tests/Drupal/KernelTests/Core/Cache/CacheFastBackendWithBrokenConfigurationTest.php
@@ -0,0 +1,22 @@
+<?php
+
+namespace Drupal\KernelTests\Core\Cache;
+
+use Drupal\Core\DependencyInjection\ContainerBuilder;
+use Drupal\KernelTests\KernelTestBase;
+
+/**
+ * Tests the cache fast backend.
+ *
+ * @group Cache
+ */
+class CacheFastBackendWithBrokenConfigurationTest extends KernelTestBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function register(ContainerBuilder $container) {
+    parent::register($container);
+  }
+
+}
