Refactored exception handling tests for Promise and Agent.