add suport for multi-groups and tests
Merge pull request #8 from chadrosen/add-support-for-multiple-groups

add suport for multi-groups and tests