Added unit tests for the Sonar Metric kpi