add setup/teardown boilerplate code for testing