Fixed terminate test case.