Oh yes, I have tested something similar. I assigned a unique hidden resource to a region. When it's settlement is captured the faction_capability (listed in the core building) triggers the availability of a certain military unit to all of the faction's settlements. It definitely works.

You see, resources can be tested for.