Unit tests for user group manipulation functions
Break different scenarios into different tests
Fix failing tests
Merge pull request #560 from kasunchathuranga/uniteTests2

Unit tests for functions that handle user groups