         expect(res.statusCode)  .to.be.equal 200
         queue.next()
 
-    for method in methods
-      addRequestToQueue queue, method, getTeamRequestParams
+    methods.forEach (method) ->
+      getTeamRequestParams = generateGetTeamRequestParams { method, groupSlug }
+
+      queue.push ->
+        request getTeamRequestParams, (err, res, body) ->
+          expect(err)             .to.not.exist
+          expect(res.statusCode)  .to.be.equal 200
+          queue.next()
 
     queue.push -> done()
 


  it 'should send HTTP 200 if slug is valid using any method', (done) ->

    addRequestToQueue = (queue, method, requestParams) ->
      requestParams.method = method
      queue.push ->
        request requestParams, (err, res, body) ->
          expect(err)             .to.not.exist
          expect(res.statusCode)  .to.be.equal 200
          queue.next()

    queue                     = []
    methods                   = ['post', 'get', 'put', 'patch']
    groupSlug                 = generateRandomString()
    getTeamRequestParams      = generateGetTeamRequestParams { groupSlug }

    createTeamRequestParams   = generateCreateTeamRequestParams
      body    :


  it 'should send HTTP 404 if group does not exist using any method', (done) ->

    queue                 = []
    methods               = ['post', 'get', 'put', 'patch']
    groupSlug             = generateRandomString()

    methods.forEach (method) ->
      getTeamRequestParams  = generateGetTeamRequestParams { method, groupSlug }

      queue.push ->
        request getTeamRequestParams, (err, res, body) ->
          expect(err)             .to.not.exist
          expect(res.statusCode)  .to.be.equal 404
          expect(body)            .to.be.equal 'no group found'
          queue.next()

    queue.push -> done()

