Resetting retryCount, cloning testParams instead of reassigning