add support for spawn
do not emit when null
Merge pull request #3 from dead-horse/support-spawn

Support mock `child_process.spawn`