Fix group expansion unit tests.