add terminated test