 
           queue = [
 
-            ->
+            (next) ->
               # expecting group to be created successfully
               JGroup.create client, groupData, account, (err, group_) ->
                 expect(err)                  .to.not.exist

                expect(err).to.not.exist
                expect(data).to.exist
                expect(data).to.be.an 'object'
                queue.next()

            ->
              # expecting no error from kick member request
              group.kickMember adminClient, account._id, (err) ->
                expect(err).to.not.exist
                queue.next()

            ->
              # admin client search for kicked member within group member
              group.searchMembers adminClient, userFormData.username, {}, (err, members) ->
                expect(err).to.not.exist
                expect(members.length).to.be.equal 0
                queue.next()

            ->
              # expecting session to be deleted after kicking member
              params =
                username  : account.profile.nickname


          queue = [

            (next) ->
              # fetching koding group
              JGroup.one { slug : 'koding' }, (err, group_) ->
                expect(err).to.not.exist
                group = group_
                next()

            (next) ->
              # expecting to not be able to fetch members data
              group.searchMembers client, username, {}, (err, members) ->
                expect(err?.message).to.be.equal 'Access denied'
                expect(members).to.not.exist
                next()

          ]

          async.series queue, done


    describe 'if username is registered', ->
