Refactor test code in EcalDeadChannelRecoveryAlgos.