Fix deprecation messages in d_do_test