diff --git a/tests/src/Kernel/JsonapiKernelTestBase.php b/tests/src/Kernel/JsonapiKernelTestBase.php
index c22a16a..5c17404 100644
--- a/tests/src/Kernel/JsonapiKernelTestBase.php
+++ b/tests/src/Kernel/JsonapiKernelTestBase.php
@@ -67,4 +67,38 @@ abstract class JsonapiKernelTestBase extends KernelTestBase {
     }
   }
 
+  /**
+   * Create an image field.
+   *
+   * @param string $entity_type_id
+   *   The type of entity the field will be attached to.
+   * @param string $bundle
+   *   The bundle name of the entity the field will be attached to.
+   * @param string $field_name
+   *   The name of the field; if it exists, a new instance of the existing.
+   *   field will be created.
+   * @param int $cardinality
+   *   The cardinality of the field.
+   */
+  protected function createImageField($entity_type_id, $bundle, $field_name, $cardinality = 1) {
+    if (!FieldStorageConfig::loadByName($entity_type_id, $field_name)) {
+      FieldStorageConfig::create([
+        'field_name' => $field_name,
+        'type' => 'entity_reference',
+        'entity_type' => $entity_type_id,
+        'cardinality' => $cardinality,
+        'settings' => [
+          'target_type' => 'file',
+        ],
+      ])->save();
+    }
+    if (!FieldConfig::loadByName($entity_type_id, $bundle, $field_name)) {
+      FieldConfig::create([
+        'field_name' => $field_name,
+        'entity_type' => $entity_type_id,
+        'bundle' => $bundle,
+      ])->save();
+    }
+  }
+
 }
diff --git a/tests/src/Kernel/Normalizer/JsonApiDocumentTopLevelNormalizerTest.php b/tests/src/Kernel/Normalizer/JsonApiDocumentTopLevelNormalizerTest.php
index 1238874..810d276 100644
--- a/tests/src/Kernel/Normalizer/JsonApiDocumentTopLevelNormalizerTest.php
+++ b/tests/src/Kernel/Normalizer/JsonApiDocumentTopLevelNormalizerTest.php
@@ -5,6 +5,7 @@ namespace Drupal\Tests\jsonapi\Kernel\Normalizer;
 use Drupal\Component\Serialization\Json;
 use Drupal\Core\Cache\Cache;
 use Drupal\Core\Field\FieldStorageDefinitionInterface;
+use Drupal\file\Entity\File;
 use Drupal\jsonapi\ResourceType\ResourceType;
 use Drupal\jsonapi\LinkManager\LinkManager;
 use Drupal\jsonapi\Normalizer\JsonApiDocumentTopLevelNormalizer;
@@ -43,6 +44,8 @@ class JsonApiDocumentTopLevelNormalizerTest extends JsonapiKernelTestBase {
     'taxonomy',
     'text',
     'user',
+    'file',
+    'image',
   ];
 
   /**
@@ -70,6 +73,7 @@ class JsonApiDocumentTopLevelNormalizerTest extends JsonapiKernelTestBase {
     $this->installEntitySchema('taxonomy_term');
     // Add the additional table schemas.
     $this->installSchema('system', ['sequences']);
+    $this->installEntitySchema('file');
     $this->installSchema('node', ['node_access']);
     $this->installSchema('user', ['users_data']);
     $type = NodeType::create([
@@ -86,6 +90,9 @@ class JsonApiDocumentTopLevelNormalizerTest extends JsonapiKernelTestBase {
       ['target_bundles' => ['tags']],
       FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED
     );
+
+    $this->createImageField('node', 'article', 'field_image');
+
     $this->user = User::create([
       'name' => 'user1',
       'mail' => 'user@localhost',
@@ -113,6 +120,12 @@ class JsonApiDocumentTopLevelNormalizerTest extends JsonapiKernelTestBase {
     $this->term1->save();
     $this->term2->save();
 
+    $this->file = File::create([
+      'uri' => 'public://example.png',
+      'filename' => 'example.png',
+    ]);
+    $this->file->save();
+
     $this->node = Node::create([
       'title' => 'dummy_title',
       'type' => 'article',
@@ -121,6 +134,15 @@ class JsonApiDocumentTopLevelNormalizerTest extends JsonapiKernelTestBase {
         ['target_id' => $this->term1->id()],
         ['target_id' => $this->term2->id()],
       ],
+      'field_image' => [
+        [
+          'target_id' => $this->file->id(),
+          'alt' => 'test alt',
+          'title' => 'test title',
+          'width' => 10,
+          'height' => 11,
+        ],
+      ],
     ]);
 
     $this->node->save();
@@ -176,10 +198,10 @@ class JsonApiDocumentTopLevelNormalizerTest extends JsonapiKernelTestBase {
     list($request, $resource_type) = $this->generateProphecies('node', 'article');
     $request->query = new ParameterBag([
       'fields' => [
-        'node--article' => 'title,type,uid,field_tags',
+        'node--article' => 'title,type,uid,field_tags,field_image',
         'user--user' => 'name',
       ],
-      'include' => 'uid,field_tags',
+      'include' => 'uid,field_tags,field_image',
     ]);
 
     $response = new ResourceResponse();
@@ -208,6 +230,12 @@ class JsonApiDocumentTopLevelNormalizerTest extends JsonapiKernelTestBase {
       ],
     ], $normalized['data']['relationships']['type']);
     $this->assertTrue(!isset($normalized['data']['attributes']['created']));
+    $this->assertEquals([
+      'alt' => 'test alt',
+      'title' => 'test title',
+      'width' => 10,
+      'height' => 11,
+    ], $normalized['data']['attributes']['field_image']['data']['meta']);
     $this->assertSame('node--article', $normalized['data']['type']);
     $this->assertEquals([
       'data' => [
@@ -223,6 +251,7 @@ class JsonApiDocumentTopLevelNormalizerTest extends JsonapiKernelTestBase {
       "The current user is not allowed to GET the selected resource. The 'access user profiles' permission is required and the user must be active.",
       $normalized['meta']['errors'][0]['detail']
     );
+    print_r($normalized);
     $this->assertEquals(403, $normalized['meta']['errors'][0]['status']);
     $this->assertEquals($this->term1->uuid(), $normalized['included'][0]['id']);
     $this->assertEquals('taxonomy_term--tags', $normalized['included'][0]['type']);
@@ -231,7 +260,7 @@ class JsonApiDocumentTopLevelNormalizerTest extends JsonapiKernelTestBase {
     // Make sure that the cache tags for the includes and the requested entities
     // are bubbling as expected.
     $this->assertSame(
-      ['node:1', 'taxonomy_term:1', 'taxonomy_term:2'],
+      ['file:1', 'node:1', 'taxonomy_term:1', 'taxonomy_term:2'],
       $response->getCacheableMetadata()->getCacheTags()
     );
     $this->assertSame(
