diff --git a/sflphone-common/test/historytest.cpp b/sflphone-common/test/historytest.cpp
index 0aa8e630e91a6be0ae5316f2035b115187540f03..380e509513594a830ae164e5a86e5d2acb95f106 100644
--- a/sflphone-common/test/historytest.cpp
+++ b/sflphone-common/test/historytest.cpp
@@ -70,7 +70,7 @@ void HistoryTest::test_load_history_from_file()
     bool res;
     Conf::ConfigTree history_list;
 
-    history->create_history_path();
+    history->create_history_path(HISTORY_SAMPLE);
     res = history->load_history_from_file (&history_list);
 
     CPPUNIT_ASSERT (history->is_loaded ());