Fixes failing specs in recent merge which has wrong check of error code.
Fixes failing specs in recent merge which has wrong check of error code.

Signed-off-by: Vasu1105 <8a767e2f32409a2973dc23ffa15c430c7b039d98@msystechnologies.com>

chef-partners/azure-chef-extension,ClogenyTechnologies/azure-chef-extension,chef-partners/azure-chef-extension,chef-partners/azure-chef-extension,chef-partners/azure-chef-extension,MsysTechnologiesllc/azure-chef-extension,MsysTechnologiesllc/azure-chef-extension,ClogenyTechnologies/azure-chef-extension,MsysTechnologiesllc/azure-chef-extension,MsysTechnologiesllc/azure-chef-extension,ClogenyTechnologies/azure-chef-extension