getHostname() also removes 'www.' from hostnames
Updated getHostname() test to accomodate new behavior.