Fixed bugs in the Adv security groups tests