Fix hostname test on c7