passing options instead of cb to spawnCommand, adding sinon stub and asserts to install unit tests