added test to fix process_motor_states bug