         // Given
         var configuration = pipeline.configuration
         configuration.isDataCacheForProcessedDataEnabled = false
-        let pipeline = ImagePipeline(configuration: configuration)
+        pipeline = ImagePipeline(configuration: configuration)
 
         // When
         expect(pipeline).toLoadImage(with: request)

        // Given
        var configuration = pipeline.configuration
        configuration.isDataCacheForOriginalDataEnabled = false
        let pipeline = ImagePipeline(configuration: configuration)

        // When
        pipeline.configuration.imageEncodingQueue.isSuspended = true
        expect(pipeline).toLoadImage(with: request)
        expect(pipeline.configuration.imageEncodingQueue).toFinishWithEnqueuedOperationCount(1)

        // Then
        wait { _ in

        XCTAssertEqual(processorFactory.numberOfProcessorsApplied, 0, "Expected no processors to be applied")
    }

    #if !os(macOS)
    func testProcessedImageIsDecompressed() {
        // Given processed image data stored in data cache
        dataLoader.queue.isSuspended = true
