Made MaxLength tests and functionality.