added basic test
added support for querying groups