test: add WAIT_FOR_DUMMY_PORTS helper macro for writing tests