Clear the cached user groups when a group is deleted
Also clear cached UserGroup when a user is added/removed
Add unit tests for getUserGroups with addUser and removeUser