Fixed maxLength test case

Modified a test case of maxLength:
* the case should fail if it is not ignored.