           body   :
             name : invalidTeamDomain
 
-        queue.push ->
+        queue.push (next) ->
           request.post verifySlugRequestParams, (err, res, body) ->
-            expect(err)             .to.not.exist
-            expect(res.statusCode)  .to.be.equal 400
-            expect(body)            .to.be.equal 'Invalid domain!'
-            queue.next()
+            expect(err).to.not.exist
+            expect(res.statusCode).to.be.equal 400
+            expect(body).to.be.equal 'Invalid domain!'
+            next()
 
-      queue.push -> done()
-
-      daisy queue
+      async.series queue, done
 
   describe 'when domain is available', ->
 

          body   :
            name : validTeamDomain

        queue.push ->
          request.post verifySlugRequestParams, (err, res, body) ->
            expect(err)             .to.not.exist
            expect(res.statusCode)  .to.be.equal 200
            expect(body)            .to.be.equal 'Domain is available!'
            queue.next()

      queue.push -> done()

      daisy queue


  describe 'when domain is taken', ->


      # expecting HTTP 400 when domain is taken
      request.post verifySlugRequestParams, (err, res, body) ->
        expect(err).to.not.exist
        expect(res.statusCode).to.be.equal 400
        expect(body).to.be.equal 'Invalid domain!'
        done()


beforeTests()

runTests()
