It's a ductility [or toughness] test. A simple hardness test is not representative of structural integrity as it only tests the surface. For heat treated metals, a v-notch test is more representative.
The notch is the start of the failure. Stress crack propagation results from the notch being cut into the sample, and the hammer hitting the sample right at the notch.