fixed test so that it sets up and tears down automatically.