       ->
         # expecting team to be created
         createTeamRequestParams = generateCreateTeamRequestParams
+          body              :
+            slug            : groupSlug
+            email           : groupOwnerEmail
+            invitees        : inviteeEmail
+            username        : groupOwnerUsername
+            password        : groupOwnerPassword
+            alreadyMember   : 'true'
+            passwordConfirm : groupOwnerPassword
+
+
+        request.post createTeamRequestParams, (err, res, body) ->
+          expect(err)             .to.not.exist
+          expect(res.statusCode)  .to.be.equal 200
+          queue.next()
+
+      ->
+        joinTeamRequestParams = generateJoinTeamRequestParams
           body       :
             slug     : groupSlug
-            invitees : inviteeEmail
-
-
-        request.post createTeamRequestParams, (err, res, body) ->
+            token    : token
+            username : inviteeUsername
+
+        request.post joinTeamRequestParams, (err, res, body) ->
           expect(err)             .to.not.exist
           expect(res.statusCode)  .to.be.equal 200
           queue.next()
 
       ->
         # expecting group to be crated
-        JGroup.one { slug :groupSlug }, (err, group) ->
+        JGroup.one { slug : groupSlug }, (err, group) ->
           expect(err)         .to.not.exist
           expect(group)       .to.exist
           queue.next()

          body    :
            token : token

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

      -> done()


  it 'should send HTTP 200 when valid data provided with unregistered user', (done) ->

    token              = ''
    groupSlug          = generateRandomString()
    inviteeEmail       = generateRandomEmail()
    groupOwnerUsername = generateRandomString()
    groupOwnerPassword = generateRandomEmail()

    queue = [

      ->
        # 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
