Added tests for the retry handlers.