the test that your helmet has to pass is a 12.5mph impact.
Note that in both cases you can still die from head injuries while wearing one. And in both cases accidents happen at a much higher speed than the tested speed (also they do resist much greater impacts)