       callback()
     , 1
 
+wirePatternMerge = ->
+  c = new noflo.Component
+  c.inPorts.add 'in1',
+    datatype: 'string'
+  c.inPorts.add 'in2',
+    datatype: 'string'
+  c.outPorts.add 'out',
+    datatype: 'string'
+
+  noflo.helpers.WirePattern c,
+    in: ['in1', 'in2']
+    out: 'out'
+    async: true
+    forwardGroups: true
+  , (data, groups, out, callback) ->
+    out.send "1#{data['in1']}#{c.nodeId}2#{data['in2']}#{c.nodeId}"
+    callback()
+
 processAsync = ->
   c = new noflo.Component
   c.inPorts.add 'in',

    setTimeout ->
      output.sendDone data + c.nodeId
    , 1

describe 'Scope isolation', ->
  loader = null

    loader.listComponents (err) ->
      return done err if err
      loader.registerComponent 'wirepattern', 'Async', wirePatternAsync
      loader.registerComponent 'wirepattern', 'Merge', wirePatternMerge
      loader.registerComponent 'process', 'Async', processAsync
      loader.registerComponent 'process', 'Merge', processMerge
      done()

  describe 'with WirePattern sending to Process API', ->
