           ]
           connection.once 'message', (message) ->
             data = JSON.parse message.utf8Data
-            chai.expect(tv4.validate data, '/graph/output/addoutport').to.be.true
+            validateSchema data, '/graph/output/addoutport'
             chai.expect(data.payload).to.eql expects[0].payload
 
             done()

            ]
            connection.once 'message', (message) ->
              data = JSON.parse message.utf8Data
              chai.expect(tv4.validate data, '/graph/output/changenode').to.be.true
              chai.expect(data.payload.metadata).to.eql expects[0].payload.metadata

              done()

          ]
          connection.once 'message', (message) ->
            data = JSON.parse message.utf8Data
            validateSchema data, '/graph/output/addinport'
            chai.expect(data.payload).to.eql expects[0].payload

            done()
