test termination