Modification of deleting cache

Added delete of the full cache of the specs. The children of the specs.js cache are now also deleted.

Now the test run correctly after every save of the files. So yo're able to use it in a watch().
Thanks for the fix, navelpluisje - worked beautifully. I'm not sure why this PR was closed, when the bug still persists, and your change fixes it.