update horizon checks in retMetrics and add unittests