proper setup and teardown for tests