no-network bug fixed and added test case for the same
removing redundancy
Merge pull request #125 from opscode/prabhu/no-network_bug_fixed

--no-network bug fixed