Make browser tests clean up after themselves properly