Cleanup get_metrics method. (ready for review)

Formatting only happens on a single result, and association between
field and label is now easier to maintain.

The test was changed because `list.append` is no longer used, and thus the order is different.