Added tests for hostname feature.