Solve some compilation problems

* Adapt `ResourceCapabilityTreeTests` to new `ICapability` methods.
* Add core dependency to `clientprovider` module allowing to import `ICoreModelCapability` from it.