Modify CalculateCertSummary to expect an error