Test generator stopping.