         return self.dataCache.persistentStoreCoordinator
     }
 
+    ///
+    /// Internal class to create the connect bundle.
+    ///
+    /// - Note: you can not use a func on self for this
+    ///         since we are initializing a content in self.
+    ///
     private class BundleManager {
 
-         class func createIfAbsent(bundleName: String) throws -> URL {
+        class func createIfAbsent(bundleName: String, in directory: FileManager.SearchPathDirectory) throws -> URL {
 
             //
             // Figure out where to put things
             //
             // Note: We use the applications bundle not the classes or modules.
             //
-            let baseURL = try FileManager.default.url(for: .documentDirectory, in: .userDomainMask, appropriateFor: nil, create: false)
+            let baseURL = try FileManager.default.url(for: directory, in: .userDomainMask, appropriateFor: nil, create: false)
 
             ///
             /// The individual stores are stored in a directory with the extension of connect.

///
///  Connect.swift
///
///  Copyright 2016 Tony Stone
///
///  Licensed under the Apache License, Version 2.0 (the "License");
///  you may not use this file except in compliance with the License.

/// The extension of the store bundle created for this store.
///
private let connectBundleExtension: String = "connect"

///
/// Location to store the connect store bundle.
///
private let connectBundleDirectory: FileManager.SearchPathDirectory = .documentDirectory

///
/// Connect
