fix unittest leak