diff --git a/src/Tests/TMGMTUiTest.php b/src/Tests/TMGMTUiTest.php
index f20c7f4..8cf689a 100644
--- a/src/Tests/TMGMTUiTest.php
+++ b/src/Tests/TMGMTUiTest.php
@@ -498,23 +498,46 @@ class TMGMTUiTest extends TMGMTTestBase {
     // Tests that there is always a title.
     \Drupal::state()->set('tmgmt.test_source_data', array(
       'title' => array(
-        '0|value' => array(
-          '#text' => '<p><em><strong>Source text bold and Italic</strong></em></p>',
-          '#label' => 'Title',
+        array(
+          'value' => array(
+            '#text' => '<p><em><strong>Source text bold and Italic</strong></em></p>',
+            '#label' => 'Title',
+            '#translate' => TRUE,
+          ),
         ),
       ),
       'body' => array(
         'deep_nesting' => array(
           '#text' => '<p><em><strong>Source body bold and Italic</strong></em></p>',
           '#label' => 'Body',
-        )
+          '#translate' => TRUE,
+        ),
       ),
     ));
     $item5 = $job->addItem('test_source', 'test', 4);
 
-    $this->drupalGet('admin/tmgmt/items/' . $item5->id());
-    $this->drupalPostForm(NULL, [], t('Save'));
-    $this->assertText(t('The field is empty'));
+    $this->drupalPostForm('admin/tmgmt/items/' . $item5->id(), [], t('Save'));
+    $this->assertText(t('The field is empty.'));
+
+    // Tests field is less than max_length.
+    \Drupal::state()->set('tmgmt.test_source_data', array(
+      'title' => array(
+        array(
+          'value' => array(
+            '#text' => '<p><em><strong>Source text bold and Italic</strong></em></p>',
+            '#label' => 'Title',
+            '#translate' => TRUE,
+            '#max_length' => 10,
+          ),
+        ),
+      ),
+    ));
+    $item5 = $job->addItem('test_source', 'test', 4);
+
+    $this->drupalPostForm('admin/tmgmt/items/' . $item5->id(), [
+      'title|0|value[translation]' => '<p><em><strong>Source text bold and Italic</strong></em></p>',
+    ], t('Save'));
+    $this->assertText(t('The field has more than :size characters.', array(':size' => 10)));
 
     // Test for the text with format set.
     \Drupal::state()->set('tmgmt.test_source_data', array(
diff --git a/tmgmt_test/src/Plugin/tmgmt/Source/TestSource.php b/tmgmt_test/src/Plugin/tmgmt/Source/TestSource.php
index e2e1227..eee578c 100644
--- a/tmgmt_test/src/Plugin/tmgmt/Source/TestSource.php
+++ b/tmgmt_test/src/Plugin/tmgmt/Source/TestSource.php
@@ -67,6 +67,7 @@ class TestSource extends SourcePluginBase {
         'deep_nesting' => array(
           '#text' => 'Text for job item with type @type and id @id.',
           '#label' => 'Label for job item with type @type and id @id.',
+          '#translate' => TRUE,
         ),
       ),
     ));
