[No reviewer required] Fix leak in UT scripts