+ unit tests on hostgroup model