add unit test for a configured PublicHostName