Add test for empty group bug fix

Test case for #202.
Merge pull request #203 from piojo/spma_hotfix_emptygroups

Add test for correct handling of empty group set