Testing of machine parts