fix testcase tear down