         df.promise()
 
       oktask = ->
-        d = new Deferred()
+        d = new md.Deferred()
         delay 100, ->
           x.push(2)
           d.resolve()

        df.promise()

      oktask = ->
        d = new Deferred()
        delay 100, ->
          x.push(2)
          d.resolve()
        d.promise()

      ngtask = ->
        d = new Deferred()
        delay 100, ->
          x.push(-2)
          d.resolve()

        df.promise()

      oktask = ->
        d = new md.Deferred()
        delay 100, ->
          x.push(2)
          d.resolve()
        d.promise()

      ngtask = ->
        d = new md.Deferred()
        delay 100, ->
          x.push(-2)
          d.reject()
