       rootViewState = rootView.serialize()
       rootView.deactivate()
       window.rootView = RootView.deserialize(rootViewState)
-      window.loadPackage("tree-view")
+      atom.activatePackage("tree-view")
       treeView = rootView.find(".tree-view").view()
 
       expect(treeView).toExist()

        rootView.deactivate()
        window.rootView = new RootView()
        rootView.open()
        treeView = window.loadPackage("tree-view").mainModule.createView()

      it "does not attach to the root view or create a root node when initialized", ->
        expect(treeView.hasParent()).toBeFalsy()

      window.rootView = RootView.deserialize(rootViewState)

      rootView.attachToDom()
      atom.activatePackage("tree-view")
      treeView = rootView.find(".tree-view").view()
      expect(treeView.find(".tree-view")).toMatchSelector ':focus'

