An automatic test system for the dynamic characterization of PEM fuel cells