Added missing teardowns to a few tests to prevent the tests from hanging.