     }
 }
 
-@available(iOS 13, tvOS 13, *)
 class DiffableDatasourcesTestCase: XCTestCase {
     enum Section {
         case one
         case two
         case three
     }
-    
-    var dataSource: UICollectionViewDiffableDataSource<Section, Int>!
+    var diffableDataSource: Any?
+    
+    @available(iOS 13, tvOS 13, *)
+    var dataSource: UICollectionViewDiffableDataSource<Section, Int>! {
+        return diffableDataSource as? UICollectionViewDiffableDataSource<Section, Int>
+    }
     var controller = DTCellTestCollectionController()
     
+    @available(iOS 13, tvOS 13, *)
     func setItems(_ items: [Int]) {
         dataSource.apply(.snapshot(with: { snapshot in
             snapshot.appendSections([.one])

    }
}

@available(iOS 13, tvOS 13, *)
class DiffableDatasourceReferencesTestCase: XCTestCase {
    enum Section {
        case one

    
    func testShouldShowViewHeaderOnEmptySEction()
    {
        guard #available(iOS 13, tvOS 13, *) else { return }
        controller.manager.registerHeader(NibHeaderFooterView.self)
        controller.manager.supplementaryStorage?.setSectionHeaderModels([1])
        setItems([])
