Fix AliasGroup equality + add extra tests