Fixed ErrorHandlingPolicy tests.
Refactored.
Checkpoint.