tests for new termination handling code written