added localhost as host in test