         queue = [
 
           ->
-            withDummyClient { group : 'koding' }, (client_) ->
-              client = client_
-
-              # registering user
-              JUser.convert client, userFormData, (err, data) ->
-                expect(err).to.not.exist
-                { account, newToken }      = data
-                client.sessionToken        = newToken
-                client.connection.delegate = account
-                queue.next()
+            withNewUser { userFormData }, (data) ->
+              { client } = data
+              queue.next()
 
           ->
             fetchMachinesByUsername userFormData.username, (machines) ->

        queue = [

          ->
            withDummyClient { group : 'koding' }, (client_) ->
              client = client_

              # registering a new user
              JUser.convert client, userFormData, (err, data) ->
                expect(err).to.not.exist
                { account, newToken }      = data
                client.sessionToken        = newToken
                client.connection.delegate = account
                queue.next()

          ->
            withDummyClient { group : 'koding' }, (client_) ->
              anotherClient = client_

              # registering another user
              JUser.convert anotherClient, generateDummyUserFormData(), (err, data) ->
                expect(err).to.not.exist
                queue.next()

          ->
            # fetching machine of user

        queue = [

          ->
            withNewUser { userFormData }, (data) ->
              { client } = data
              queue.next()

          ->
            withNewUser {}, (data) ->
              { client : anotherClient } = data

              # fetching owner user's machine
              fetchMachinesByUsername userFormData.username, (machines) ->
                machine = machines[0]

                # expecting error when another user attempts to revive users
                machine.reviveUsers anotherClient, {}, (err) ->
                  expect(err?.message).to.be.equal 'Access denied'
                  queue.next()

          -> done()

