Test now fails if calculated rate is NaN.
Before, the test was passed if "calculated rate" = NaN because the if-condition for failure was not satisfied.
Before, the test was passed if "calculated rate" = NaN because the if-condition for failure was not satisfied.