A modular approach to the statistical characterization of ESD tests