test annotated hierarchy