add regression test for setup/teardown functions