`node test` should have non-zero exit code if some tests failed

Return the results of testing to a parent process.

Traditionally the exit code is `0` only if everything is okay (“no failing tests” in this case).