Issue #22049: fixed "test-datasource" tests

this fixes `test-datasource`, broken in #1089