Added tests

Addresses #30
When spawning, use `process.argv[0]` instead of `'node'` to be cross-platform.