Fix deprecation messages in d_do_test
Merge pull request #3962 from yebblies/dtestenv

Fix deprecation messages in d_do_test