Fix to terminate test case.