TEST: Fixes problem with permissions migration.