added tests for group API