[1.7.x] Restored the 'TEST_' prefix in the warning about deprecated test database settings

Backport of 88edce2abb from master