 
           viewState = rootView.serialize()
           rootView.deactivate()
-          window.rootView = RootView.deserialize(viewState)
+          window.rootView = deserialize(viewState)
 
           rootView.attachToDom()
           expect(rootView.getEditors().length).toBe 0

        viewState = rootView.serialize()
        rootView.deactivate()

        window.rootView = RootView.deserialize(viewState)
        rootView.attachToDom()

        expect(rootView.getEditors().length).toBe 2


          viewState = rootView.serialize()
          rootView.deactivate()
          window.rootView = deserialize(viewState)
          rootView.attachToDom()

          expect(rootView.getEditors().length).toBe 4
