Fixed test that did not shut down correctly