test(transformer): fix test by enabling the parsing of attribute annotations

Attribute annotations are considered only when a class level annotation
exists.