finish setup and teardown for tests