Migrated test from AG security