Add test for correct handling of empty group set

Test case for #202.