fix failing test
add a new test for early termination due to exception