               expect(err).to.not.exist
               machineParams = data
               queue.next()
-        
+
           ->
             # expecting machine to be craeted
             JMachine.create machineParams, (err, machine) ->

            machine.destroy _client, (err) ->
              expect(err).to.not.exist
              queue.next()
        
          ->
            # fetching machine instances again expecting machine to be destroyed
            JMachine.fetchByUsername userInfo.username, (err, machines) ->

            targets   : targets
            asOwner   : yes
            permanent : yes

          expectedError = "Machine sharing is limited up to #{limit} users."
          machine.addUsers params, (err) ->
            expect(err?.message).to.be.equal expectedError
