added tests to verify behavior when customizing number of retries for specific exception types