diff --git a/ckanext/odsh/tests_tpsh/test_profiles.py b/ckanext/odsh/tests_tpsh/test_profiles.py
index 1ec5d80a8d6df7901ea6925b5ddbf19d3e77a720..d0c00dea5e244f5b0355eb9a1b4ea4c874396fe8 100644
--- a/ckanext/odsh/tests_tpsh/test_profiles.py
+++ b/ckanext/odsh/tests_tpsh/test_profiles.py
@@ -96,7 +96,7 @@ class TestODSHDCATdeProfileGraphFromDataset(unittest.TestCase):
     
     def get_graph_and_assert_in(self, dataset_dict, dataset_ref, expected_node):
         self.profile.graph_from_dataset(dataset_dict, dataset_ref)
-        graph_serialized = self.profile.g.serialize()
+        graph_serialized = self.profile.g.serialize(format='pretty-xml')
         print((self.profile.g.serialize(format='pretty-xml')))
         assert expected_node in graph_serialized
     
@@ -181,4 +181,4 @@ class TestODSHDCATdeProfileGraphFromDataset(unittest.TestCase):
         self.profile._remove_predefined_collection_members()
         graph_serialized = self.profile.g.serialize()
         for ref in refs:
-            assert ref in graph_serialized
+            assert ref not in graph_serialized