Fix mig 186 downgrade when using sqlalchemy >= 0.8

This patch fixes an issue that cause tests to break when using
SQLAlchemy 0.8 and newer. The migration was using non-existing column
names in an update query. Referring to a non-existent column in an
insert() or update() construct will raise an error instead of a warning
in SQLAlchemy 0.8.

As an added bonus - this patch adds the downgrade tests for migration
186 (which were missed in the original patch) to ensure there are no
further regressions.

Fixes bug: #1201453

Change-Id: I3c679e95583ee0c1bded5a01ddec6d6212904195
Deduplicate data in TestAddressesXMLSerialization

Extract function which returns test-related data.

Blueprint: api-compute-servers-tests
Change-Id: Ie1b212a2057748a1a067b2af4a30df32e35b672a
Fixed tests for flavor swap extension after merging in core API

flavor_swap extension was merged into core API but tests were not
updated accordinly so this functionality was not tested at all.
This commit adds proper tests for this extension

Related to blueprint nova-v3-api

Change-Id: If5f464302f2efd51d6c48d9c28baa6e0922bfa2c
Merge "Fixed tests for flavor swap extension after merging in core API"
Merge "Deduplicate data in TestAddressesXMLSerialization"
Merge "Fix mig 186 downgrade when using sqlalchemy >= 0.8"
Merge remote-tracking branch 'm_src_repo/citrix-fixes' into build-temp