Unit tests for groups management