Fixed unit tests for hosts model

Unit tests were failing since the hosts model
is changed to have resources. Fixed it.

Change-Id: If9b233683ef73c415c61a8460b5e5af78b0be0ce
Merge "Fixed unit tests for hosts model"