CDITCK-395: Extend WithAnnotationsTest to consider the special inheritance rules defined for scope types