getLocalName method works