rewrote motor_test