test-utils - fixed terminate method