Update ValidatorTest.php

fixed undefined offset in string generation