Hook tool for sending metrics from charm.

A hook tool metric-add is made available to charm authors for sending metrics to state.
you don't need this test, the for loop will execute 0 iterations if there is no work to do.