     }
 
     func testTogglePBMDelete() {
-        let profile = TabManagerMockProfile()
-        let manager = TabManager(profile: profile, imageStore: nil)
         profile.prefs.setBool(true, forKey: "settings.closePrivateTabs")
 
         let tab = manager.addTab()

    }

    func testRemoveTabRemovingLastNormalTabShouldNotSwitchToPrivateTab() {
        let profile = TabManagerMockProfile()
        let manager = TabManager(profile: profile, imageStore: nil)

        let tab0 = manager.addTab()
        let tab1 = manager.addTab(isPrivate: true)

    }

    func testDidDeleteLastTab() {
        let didSelect = MethodSpy(functionName: spyDidSelectedTabChange) { tabs in
            XCTAssertNotNil(tabs[0])
            XCTAssertNotNil(tabs[1])
