Could you move the setting and restoring the default_external into a before and after block?