My mistake... this is OK. But I am increasing the size of the string to generate the error sooner... it takes some time and makes the tests slow.