fixes #7271 - validate repositories associated to content views

Why not use some factories here?