Passed test for an undefined state in terminate
Test for defined state passes as well