max retry test