Add a test for group creation: is this a good way to do it?