Resource Identity handling improved

Fixed failing tests, added some additional tests.
Major change here is to validate that the Resource Name is a valid
resource according to the model before returning it from the Collection
property on the ResourceIdentity object