fix retry manager unittest

fixes #5122