Testing of materials or semi-finished products