Retry unittest