failsafe test: Fix destruction order