     }
 
     func testTabsIndexClosingFirst() {
-        let profile = TabManagerMockProfile()
-        let manager = TabManager(profile: profile, imageStore: nil)
-        let delegate = MockTabManagerDelegate()
 
         // We add 2 tabs. Then a private one before adding another normal tab and selecting the first.
         // Make sure that when the last one is deleted we dont switch to the private tab

    }

    func testDeleteSelectedTab() {
        let profile = TabManagerMockProfile()
        let manager = TabManager(profile: profile, imageStore: nil)
        let delegate = MockTabManagerDelegate()

        func addTab(_ visit: Bool) -> Tab {
            let tab = manager.addTab()


    func testDelegatesCalledWhenRemovingPrivateTabs() {
        //setup
        profile.prefs.setBool(true, forKey: "settings.closePrivateTabs")

        // create one private and one normal tab
