Fix errors detected with jasmine tests

Modify code to pass jasmine tests. Tests fixed: MetricsEvol and MetricsEvolSet