fixed resthost test