Fixed test exiting