The original value of destroy should be stored in a local variable and then assigned back in the stubbed out function. This technique will fail if something in this test breaks and will cause cascading failures so you should add a comment that this is required for this test.