Issue #22049: fixed "test-datasource" tests

this fixes `npm run-script test-datasource`, broken in #1089