Fix leaks on discovery test