test: move to sim = Simulator(dut) instead of context manager.