setup and teardown processes properly