Tests for https://gitlab.com/caosdb/caosdb-server/-/issues/216
See implementation in caosdb-server!94 (merged)