Added tests for the retry block pattern.