         chai.expect(g.initializers.length).to.equal 0
 
   describe 'with an indexed Inport Initial Information Packet', ->
-    g = new graph.Graph
+    g = new noflo.graph.Graph
     g.addNode 'Split', 'Split'
     g.addInport 'testinport', 'Split', 'in'
     g.addGraphInitialIndex 'Foo', 'testinport', 1

    json = JSON.parse(jsonString)
    g = null
    it 'should produce a Graph', (done) ->
      graph.loadJSON json, (err, instance) ->
        return done err if err
        g = instance
        chai.expect(g).to.be.an 'object'

        chai.expect(g.initializers.length).to.equal 0

  describe 'with no nodes', ->
    g = new noflo.graph.Graph
    it 'should not allow adding edges', ->
      g.addEdge 'Foo', 'out', 'Bar', 'in'
      chai.expect(noflo.graph.edges).to.be.empty
    it 'should not allow adding IIPs', ->
      g.addInitial 'Hello', 'Bar', 'in'
      chai.expect(noflo.graph.initializers).to.be.empty

  describe 'Legacy exports loaded via JSON', ->
    jsonString = """
