fix chefspec test and remove java-gateway from agent cookbook