In reply to jwl1806:
It is not a good place to print the topology from the toplevel module. It might not be ready directly after calling run_test.
You could include a trigger in the end_of_elaboration_phase of the test that indicates your dynamic part of the testbench is ready. And you have to wit for this trigger in the toplevel module.