Added test for error retry