Add plugin structure to make test stoppable base on the sampling .