diff --git a/test/runtests.jl b/test/runtests.jl
index 05ff5897beafadde914c519db48599d000b538f8..33786c1ee848941477ed648c5d1a386004b1fb6b 100644
--- a/test/runtests.jl
+++ b/test/runtests.jl
@@ -209,7 +209,7 @@ end
         ent_with_name = CaosDB.Entity.create_entity("TestFile")
         set_role(ent_with_name, "FILE")
         set_local_path(ent_with_name, upload_path)
-        set_file_path(ent_with_name, string("/Inttests/", fname))
+        set_remote_path(ent_with_name, string("/Inttests/", fname))
 
         single_insert_transaction = create_transaction()