Added test loop to change gear