Changed testDataFor to use getAnnotations instead of getDeclaredAnnotations.