Added unit tests to validate some special cases with getRealTimeMeasure(), added verification for duplicated kpis