test for scope generated_users