I'm going to suggest later that you use test/utils.js makeStubMethod and makeStubFunction.  Notice that these have reset functions available that can be used to pass to teardowns.