Added tests for hostinfo