CDITCK-395: Extend WithAnnotationsTest to consider the special inheritan...

...ce rules defined for scope types