added terminated/poison pill test