Fixed a bug with HistoryKey and MeasureHistoryService, KPI linked to an entityType but not an entity was failing in getHistory() method
Added unit test with mocking for getHistory() method