           output.sendDone 'some data'
           done()
 
-      someDataOut.on 'ip', (ip) ->
+      sout1.on 'ip', (ip) ->
         chai.expect(ip).to.eql 'some data'
         done()
 
-      c.outPorts.error.attach someDataOut
+      c.outPorts.error.attach sout1
       c.inPorts.in.attach sin1
       sin1.post new IP 'data', 'some-data'
 
     it 'should send object out other port if there is only one port aside from error', (done) ->
-      someDataOut = new socket.InternalSocket
-
       c = new component.Component
         inPorts:
           in:

      sin1.post new IP 'data', 'some-data'

    it 'should send out string other port if there is only one port aside from error', (done) ->
      someDataOut = new socket.InternalSocket

      c = new component.Component
        inPorts:
          in:

          output.sendDone some: 'data'
          done()

      sout1.on 'ip', (ip) ->
        chai.expect(ip).to.eql some: 'data'
        done()

      c.outPorts.error.attach sout1
      c.inPorts.in.attach sin1
      sin1.post new IP 'data', 'some-data'

