added a test: test_getNumberOfHosts().