Hardness testing of metals