Test prune

Tests that call `spawn()` and ensure that no stdout/stderr events occur don't seem to work. In particular, the last npm prune test did not catch the stderr event.