Fixed terminate event test.