Some more tests

This PR could really use some more eyes, especially for the watch mode test. I'm kind of anxious of all the child_process hackery/tricks as I'm not that proficient in Node.js.

See also #1795.
Although now that I'm rereading the mocha docs, you may need to move that `after` hook to before the `it` examples.