MAINT: Adds floating point tolerance to risk metric comparison tests.

In preparation of changing how risk metrics are calculated,
this makes the checking of results more tolerant to floating point
rounding, since upcoming changes change the results by a neglible margin.