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