change var name "test" to "allResourceTypes"