Added PublicDnsName verification in unit tests

Changed duplicate validation of attribute PrivateDnsName to verify
PublicDnsName instead in unit tests.

Change-Id: If9282f61a421ee6b79234c75d60b6b2b3dbc1ee1
Merge "Added PublicDnsName verification in unit tests"