add test getIPAddresses() method