bug 2041: group alliances are lost.
added test coverage, too.