Revert "Revert "Fix EZP-22838: Tests: provider* functions use the default db parameters and not the provided dsn""

This reverts commit e73c1ca538b80c29c2c13d8177f99ee6b2452a4a.