How to perform an hardness test