             allowedDomains : [ 'koding.com' ]
 
           # create the group
-          JGroup.create adminClient, groupData, account, (err, data)->
+          JGroup.create adminClient, groupData, account, (err, data) ->
             expect(err).to.not.exist
 
             group = data

KONFIG                      = require('koding-config-manager').load("main.#{argv.c}")
mongo                       = MONGO_URL or "mongodb://#{ KONFIG.mongo }"
Bongo                       = require 'bongo'
JUser                       = require './user'
JGroup                      = require './group'
JAccount                    = require './account'

    describe 'if user is not a member yet', ->

      it 'should receive the invitation', (done) ->
        queue = [

          ->
            invitationReq = {
              invitations:[
                { email: userFormData.email }
              ]
            }

            JInvitation.create adminClient, invitationReq, (err) ->
              expect(err).to.not.exist

          ->
              JInvitation.one { email: userFormData.email, groupName: client.context.group }, (err, invitation) ->
                expect(err).to.not.exist
                expect(invitation).to.exist

          -> done()

        ]

        daisy queue


    describe 'if user is already member', ->

      it 'should not receive the invitation', (done) ->

        queue = [

          ->
            JUser.convert client, userFormData, (err) ->
              expect(err).to.not.exist
              queue.next()

          ->
            invitationReq = {
              invitations:[
                { email: userFormData.email }
              ]
            }

            JInvitation.create adminClient, invitationReq, (err) ->
              expect(err).to.not.exist
              queue.next()

          ->
            JInvitation.one { email: userFormData.email, groupName: group.slug }, (err, invitation) ->
              expect(err).to.not.exist
              expect(invitation).to.not.exist
              queue.next()

          -> done()

        ]

        daisy queue

runTests()
