This code will execute only once at the beginning of Autonomous. If TEST happens to be true the instant the robot is Enabled, then it will start the motor and quit. The motor will continue running forever.
You need to put a while loop around the outside of this (TEST needs to be inside the loop, too). Give it a Wait of 10ms or so as well.
I recommend you use State Machine in LabView for auto