calling sethostname from resetnetwork
fixing tests