passing correct options object to spawnCommand method
Call spawnCommand with correct options argument and convert install unit tests to using sinon