fixes unit test on hosts
fixes unit test on host templates