fix hostz.restore bug
reorganize hostz.spec.js
fix bug when load json file