diff --git a/Event/xAOD/xAODEventFormatCnv/CMakeLists.txt b/Event/xAOD/xAODEventFormatCnv/CMakeLists.txt
index c24bb3a933b705edf077e0657323800a86ba8f61..77e8bf65231767f61a3796a14899daee0572f680 100644
--- a/Event/xAOD/xAODEventFormatCnv/CMakeLists.txt
+++ b/Event/xAOD/xAODEventFormatCnv/CMakeLists.txt
@@ -3,36 +3,27 @@
 # Declare the package name.
 atlas_subdir( xAODEventFormatCnv )
 
+# Find the necessary "externals".
 find_package( xAODUtilities )
 
+# Set up the "main library" of the package.
 atlas_add_component( xAODEventFormatCnv
   src/*.h src/*.cxx src/components/*.cxx
   LINK_LIBRARIES
     GaudiKernel AthenaKernel AthenaBaseComps StoreGateLib xAODEventFormat )
 
-atlas_add_component( xAODEventFormatCnvTest
-  src/test/*.h src/test/*.cxx
-  LINK_LIBRARIES
-    GaudiKernel
-    AthenaBaseComps
-    AthContainers
-    AthContainersInterfaces
-    StoreGateLib
-    xAODCore
-    xAODEventFormat )
-
+# Set up the test code of the package.
 atlas_add_library( xAODEventFormatCnvTestLib
-  src/test/*.h src/test/*.cxx
+  xAODEventFormatCnv/test/*.h xAODEventFormatCnv/test/versions/*.h
+  src/test/A_v1.cxx src/test/AAuxContainer_v1.cxx
   PUBLIC_HEADERS xAODEventFormatCnv
-  PRIVATE_INCLUDE_DIRS ${ROOT_INCLUDE_DIRS}
-  LINK_LIBRARIES
-    GaudiKernel
-    AthenaKernel
-    AthContainers
-    AthContainersInterfaces
-    xAODCore
-    xAODEventFormat
-  PRIVATE_LINK_LIBRARIES AthenaBaseComps StoreGateLib )
+  LINK_LIBRARIES AthContainers xAODCore
+  PRIVATE_LINK_LIBRARIES AthContainersInterfaces )
+
+atlas_add_component( xAODEventFormatCnvTest
+  src/test/*.h src/test/ACreatorAlg.cxx src/test/EventFormatPrinterAlg.cxx
+  LINK_LIBRARIES GaudiKernel AthenaKernel AthenaBaseComps StoreGateLib
+  xAODEventFormat xAODEventFormatCnvTestLib )
 
 atlas_add_poolcnv_library( xAODEventFormatCnvTestAthenaPoolCnv
   src/test/cnv/*.h src/test/cnv/*.cxx
@@ -46,24 +37,23 @@ atlas_add_poolcnv_library( xAODEventFormatCnvTestAthenaPoolCnv
     xAODMakerTest::AAuxContainer
   CNV_PFX xAODMakerTest
   LINK_LIBRARIES
+    GaudiKernel
+    AthenaKernel
     AthenaPoolCnvSvcLib
-    AthenaPoolUtilities
     AthContainers
     xAODEventFormatCnvTestLib )
 
+atlas_add_xaod_smart_pointer_dicts(
+  INPUT xAODEventFormatCnv/test/selection.xml
+  OUTPUT _selectionFile
+  CONTAINERS "xAODMakerTest::AVec_v1" )
+
 atlas_add_dictionary( xAODEventFormatCnvTestDict
   xAODEventFormatCnv/test/xAODEventFormatCnvTestDict.h
-  xAODEventFormatCnv/test/selection.xml
   ${_selectionFile}
-  INCLUDE_DIRS ${ROOT_INCLUDE_DIRS}
   LINK_LIBRARIES xAODCore xAODEventFormatCnvTestLib
   EXTRA_FILES src/test/dict/*.cxx )
 
-atlas_add_xaod_smart_pointer_dicts(
-  INPUT xAODEventFormatCnv/test/selection.xml
-  OUTPUT _selectionFile
-  CONTAINERS "xAODMakerTest::AVec_v1" )
-
 # Install files from the package.
 atlas_install_joboptions( share/*.py )
 
diff --git a/Event/xAOD/xAODEventFormatCnv/xAODEventFormatCnv/test/versions/AAuxContainer_v1.h b/Event/xAOD/xAODEventFormatCnv/xAODEventFormatCnv/test/versions/AAuxContainer_v1.h
index b1833d1da732a00780ec73e69f3c370a7307076e..0c3be4dffc7c25cac6e59f9ec045f15af7e34ef5 100644
--- a/Event/xAOD/xAODEventFormatCnv/xAODEventFormatCnv/test/versions/AAuxContainer_v1.h
+++ b/Event/xAOD/xAODEventFormatCnv/xAODEventFormatCnv/test/versions/AAuxContainer_v1.h
@@ -1,5 +1,5 @@
 // This file's extension implies that it's C, but it's really -*- C++ -*-.
-/* Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration */
+/* Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration */
 /**
  * @file xAODEventFormatCnv/test/versions/AAuxContainer_v1.h
  * @author frank berghaus <fberghaus@anl.gov>
@@ -11,8 +11,8 @@
 
 
 #include "xAODCore/AuxContainerBase.h"
+#include "xAODCore/BaseInfo.h"
 #include "AthContainers/PackedContainer.h"
-#include "AthenaKernel/BaseInfo.h"
 #include <vector>
 
 
diff --git a/Event/xAOD/xAODEventFormatCnv/xAODEventFormatCnv/test/versions/A_v1.h b/Event/xAOD/xAODEventFormatCnv/xAODEventFormatCnv/test/versions/A_v1.h
index 5d39f522f7b3ee5a4511b78befb3956a0e8bac85..ede03a4faf7cd1a30d53d23e4f0d9cdc1767d105 100644
--- a/Event/xAOD/xAODEventFormatCnv/xAODEventFormatCnv/test/versions/A_v1.h
+++ b/Event/xAOD/xAODEventFormatCnv/xAODEventFormatCnv/test/versions/A_v1.h
@@ -1,5 +1,5 @@
 // This file's extension implies that it's C, but it's really -*- C++ -*-.
-/* Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration */
+/* Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration */
 
 /**
  * @file xAODEventFormatCnv/test/versions/A_v1.h
@@ -11,7 +11,7 @@
 #define XAODEVENTFORMATCNV_TEST_A_V1_H
 
 #include "AthContainers/AuxElement.h"
-#include "AthenaKernel/BaseInfo.h"
+#include "xAODCore/BaseInfo.h"
 
 
 namespace xAODMakerTest {