Use home directory path from Ohai instead of hard coded one
Execute apt-get update before test
Fix: API changes in ohai7 and chef 11.10.4