Add test-setgroups.cpp test file