Restored the 'TEST_' prefix in the warning about deprecated test database settings
Fixed #23289 -- Added mock as a test dependency.