Introduce the terminated state for tests