fix: unit test fail on group testing

Update function findRoleInThisGroup
  - add handle for case member.user._id is undefined

Update function checkRights
  - replace comment in lines 91, 96
  - change this to thisGroup in async.parallel
fix(appManager): increase toobusy maxLag to allow unit tests run successfully
fix(appManager): make maxLag configurable