motor-and-generator-testing