Bring back missing GetAnnotationValue for tests.

Change-Id: I18fbfe6f03339b712f0183c83995120d67070884
Merge topic '14771_fix_global_annotation_filter' into next

8d183f0c Bring back missing GetAnnotationValue for tests.