Unit tests for user group manipulation functions
Break different scenarios into different tests
Fix failing tests