Deduplicate data in TestAddressesXMLSerialization

Extract function which returns test-related data.

Blueprint: api-compute-servers-tests
Change-Id: Ie1b212a2057748a1a067b2af4a30df32e35b672a
Merge "Deduplicate data in TestAddressesXMLSerialization"