#987 maxLength: Update and create new tests.