           setUserPasswordStatus queue, username, 'needs reset'
 
         ->
+          # expecting unsuccessful login attempt
           JUser.login clientId, loginCredentials, (err)->
             expect(err).to.exist
             queue.next()


    it 'should be to able login user when data is valid', (done) ->

      session           = null
      lastLoginDate     = null
      # generating user info with random username and password
      { username, password }    = userInfo = generateUserInfo()
      loginCredentials          = generateCredentials { username, password }

      queue = [



    it 'should handle groups correctly', (done) ->

      loginCredentials = generateCredentials
        groupName : 'invalidgroupName'

      queue = [

