Fix resource test failure on Destroy and Extract tasks