add shutdown to tests