CORE: fixed getGroupUsers select for Postgres

- Fixed typo in SQL select
- Added test for getGroupUsers method
Merge pull request #182 from zlamalp/groups

CORE: fixed getGroupUsers select for Postgres