Fix issue with PhiAccrualFailureDetector loss of floating point precision

Fix issue with PhiAccrualFailureDetector loss precision, and update tests (#3706)