Right now the test suite has partial support for test sweepers. They also are executed by the test suite internally. These sweepers should be exposed to terraform so resources can be cleaned up prior to a test run. This helps in the case that a code change causes the test suite to panic and leaves resources around.
In addition our TestMain function should be able to recover from test panics so that it can still run the teardown code.