added a stop button to auto testing