diff --git a/test/test_entity.cpp b/test/test_entity.cpp
index 95c451d8d83154352731f1947d3972586e5b6a79..f80174836c95a003ae31cfa4f12b0ed8b1262052 100644
--- a/test/test_entity.cpp
+++ b/test/test_entity.cpp
@@ -30,6 +30,7 @@
 #include "caosdb/status_code.h"                  // for StatusCode, FILE_DO...
 #include "caosdb/transaction.h"                  // for Transaction
 #include "caosdb/value.h"                        // for Value
+#include <boost/filesystem/path.hpp>             // for path
 #include <exception>
 #include <google/protobuf/arena.h> // for Arena
 #include <gtest/gtest-message.h>   // for Message
@@ -459,6 +460,9 @@ TEST(test_entity, test_add_file) {
   Entity entity;
   entity.SetRole(Role::FILE);
   EXPECT_EQ(entity.SetLocalPath(TEST_DATA_DIR + "/test.json"), StatusCode::SUCCESS);
+  EXPECT_EQ(entity.SetLocalPath(
+				boost::filesystem::relative(TEST_DATA_DIR + "/test.json")),
+			StatusCode::SUCCESS);
 }
 
 } // namespace caosdb::entity