Improve the group test factory

Generate a different name for each test group, and require the user who
will create the group as a param.

This will break some existing tests...