adapted tests for a groupId indexed group array