fixed hostname call in testing