Make host name configurable in unittest
Fix unit test issue