adding test and optimizations for mirroring of annotations