Fixed MultiShadowResourceTest to work with generics.