       atom.workspace = new Workspace({
         config: atom.config, project: atom.project, packageManager: atom.packages,
         grammarRegistry: atom.grammars, notificationManager: atom.notifications,
+        clipboard: atom.clipboard, viewRegistry: atom.views,
         setRepresentedFilename: jasmine.createSpy('setRepresentedFilename'),
-        setDocumentEdited: setDocumentEdited, atomVersion: atom.getVersion()
+        setDocumentEdited: setDocumentEdited
       })
       atom.workspace.deserialize(workspaceState, atom.deserializers)
 

        workspace2 = new Workspace({
          config: atom.config, project: atom.project, packageManager: atom.packages,
          grammarRegistry: atom.grammars, notificationManager: atom.notifications,
          setRepresentedFilename: jasmine.createSpy('setRepresentedFilename'),
          setDocumentEdited: setDocumentEdited, atomVersion: atom.getVersion()
        })

    atom.workspace = workspace = new Workspace({
      config: atom.config, project: atom.project, packageManager: atom.packages,
      grammarRegistry: atom.grammars, notificationManager: atom.notifications,
      clipboard: atom.clipboard, viewRegistry: atom.views,
      setRepresentedFilename: jasmine.createSpy('setRepresentedFilename'),
      setDocumentEdited: setDocumentEdited, atomVersion: atom.getVersion()
    })
