tests for lengthValidator