Move retry settings for testing into common class