Fix localtester issues with open files