Fixed some issues with test_motor.