Test http retry failed

Thanks, I had been doing that for the private members of class definitions, but it should also be used in this instance with private functions inside a module.