Fix test leak