(test-hostname.py) add more debug message when test failed