Add tests for metric value computation