fix leaks in testcases