Increase test coverage for metricses

A test set that at least covers all the metrics code. Not all situations are covered yet, but this is good enough for now. I will add some tests during the upcoming days when I've some spare time left.