diff --git a/tests/test_issues_server.py b/tests/test_issues_server.py
index 3027281c0071a4dda6713fe04739172780c2057a..e0a86b9cea507679aa8fc0bd2a1071d87d7f7ee7 100644
--- a/tests/test_issues_server.py
+++ b/tests/test_issues_server.py
@@ -377,8 +377,16 @@ def test_issue_154_with_versioning():
 
 def test_issue_127():
     """https://gitlab.com/caosdb/caosdb-server/-/issues/127"""
-    p = db.Property("TestProp", datatype=db.LIST(db.DOUBLE)).insert()
-    rt = db.RecordType("TestRT").add_property("TestProp", ["NaN"]).insert()
+    p = db.Property(name="TestDoubleProperty", datatype=db.LIST(db.DOUBLE)).insert()
+    rt = db.RecordType(name="TestRecordType").add_property(name="TestDoubleProperty",
+                                                           value=["nan"]).insert()
+
+    test1 = db.execute_query("FIND TestRecordType", unique=True)
+    assert math.isnan(test1.get_property("TestDoubleProperty").value[0])
+
+    test2 = db.execute_query(
+        "FIND TestRecordType WITH TestDoubleProperty = NaN", unique=True)
+    assert math.isnan(test1.get_property("TestDoubleProperty").value[0])
 
 
 def test_issue_170():