Fix AliasGroup equality + add extra tests
Merge branch 'master' into 1.0.x