update tests

 * add setup, teardown defer