adding inviteGroupUser functionality and tests