diff --git a/test/test_serialize_export_import.py b/test/test_serialize_export_import.py
index 46f46bfe850e732b98e66b53492a3423323bea1c..267c34f0a92e63ff221e60df5641ee2c5194e504 100644
--- a/test/test_serialize_export_import.py
+++ b/test/test_serialize_export_import.py
@@ -94,7 +94,7 @@ class SerializeTest(unittest.TestCase):
         self.assertTrue(SERIALIZED_SOI_SCHEMA.is_valid(json_data))
 
     def test_import_soi(self):
-        """Import serialized SOI, check SOI content and delete SOI-file."""
+        """Import serialized SOI, check SOI content and delete SOI-files."""
         # Write invalid serialization to file
         invalid_soi_file_path = "test_file.json"
         invalid_serialization = {
@@ -105,13 +105,14 @@ class SerializeTest(unittest.TestCase):
         file.write(str(invalid_serialization))
         file.close()
         # Assert invalid serialization throws error on import
-        with self.assertRaises(ValueError) as err:
+        with self.assertRaises(ValueError) as error:
             import_soi(invalid_soi_file_path)
         self.assertEqual(
-            str(err.exception), "Serialized SOI does not have correct format."
+            str(error.exception),
+            "Serialized SOI does not have correct format.",
         )
 
-        # Import SOI
+        # Import SOI with correct format
         soi = import_soi(self.file_path)
 
         # Assert SOI content is correct