Fixed test so browser always shuts down