Instead of deducing metric type from details of struct describing it test cases explicitly specify the metric type they use.
pkg/controller/podautoscaler
GetExternalMetricReplicas