fixing read metric and tests