Check duplicates resources and roles - Tests