test motor with PWM