Testing of gearing or of transmission mechanisms