allow '#' start comment in hostname file

added test script