restores unit test tear down function