Let G be a finite group. The Cohen-Lenstra-Martinet Heuristics give a prediction of the distribution of \(\operatorname {Cl}_K[p^\infty ]\) when K runs over G-fields and \(p\not \mid |G|\) . In this paper, we prove several results on the distribution of ideal class groups for some \(p\mid |G|\) , and show that the behaviour is qualitatively different than what is predicted by the heuristics when \(p\not \mid |G|\) . We do this by using genus theory and the invariant part of the class group to investigate the algebraic structure of the class group, and show the infinite moments of class groups for abelian fields and \(D_4\) -fields.