add resource scope test