testbench: fix test with improper startup/shutdown