       it 'should give a pipeline for the single function', ->
         ctx =
           ran: false
-        com = (context, next) -> context.ran = true ; next context
+        com = (next, context) -> context.ran = true ; next context
         fn = builder.pipeline com
         result = fn ctx
         assert.equal ctx.ran, true

      it 'should give a pipeline for the single function', ->
        ctx =
          ran: false
        com = (context, next) -> context.ran = true ; next context
        fn = builder.pipeline [com]
        result = fn ctx
        assert.equal ctx.ran, true


      it 'should be available to next command in pipeline', ->
        ctx = {}
        com1 = (next, context) -> context.add = 'added' ; next context
        com2 = (next, context) ->
          if context?.add? then context.seen = true
          next context
        fn = builder.pipeline [com1, com2]
