get host name automatically in test