Prevent `ImproperlyConfigured` exception from being raised in tests