Fixed broken tests

- dash in hostname was not taken into consideration