fix terminate test run