 
     it 'should be unaffected by altering array after build', ->
       ctx = ran1: false, ran2: false
-      com1 = (context, next) -> context.ran1 = true ; next context
+      com1 = (next, context) -> context.ran1 = true ; next context
       com2 = (context) -> context.ran2 = true
       array = [com1]
       fn = builder.pipeline array

      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 give a pipeline for the single function', ->
        ctx =
          ran: false
        com = (next, context) -> context.ran = true ; next context
        fn = builder.pipeline [com]
        result = fn ctx
        assert.equal ctx.ran, true
