Fix an infinite loop that occurs when files auto-generated by the test framework trigger the tests to be run again.

Every time the tests run, I see that packageMockSpec.js and package-stubs.js are regenerated by the test framework. This triggers another set of test runs, which triggers another generation of the files, which triggers another set of test runs... well, you get the idea. :)