test code for maxlength