unit tests for new legacy_puppet_hostname setting