 
       ->
         # expecting team to be created
-        createTeamRequestParams = generateCreateTeamRequestParams
-          body              :
+        generateCreateTeamRequestParams {
+          body : {
             slug            : groupSlug
             email           : groupOwnerEmail
             invitees        : inviteeEmail


      ->
        # expecting team to be created
        createTeamRequestParams = generateCreateTeamRequestParams
          body              :
            slug            : groupSlug
            invitees        : inviteeEmail
            username        : groupOwnerUsername
            password        : groupOwnerPassword
            passwordConfirm : groupOwnerPassword

        request.post createTeamRequestParams, (err, res, body) ->
          expect(err)             .to.not.exist
          expect(res.statusCode)  .to.be.equal 200
          queue.next()

      ->
        # expecting group to be crated

    queue = [

      ->
        generateCreateTeamRequestParams {
          body : { slug : groupSlug }
        }, (createTeamRequestParams) ->

          request.post createTeamRequestParams, (err, res, body) ->
            expect(err)             .to.not.exist
            expect(res.statusCode)  .to.be.equal 200
            queue.next()

      ->
        getTeamMembersRequestParams = generateGetTeamMembersRequestParams
