Fix the order of assertEqual arguments(v3_auth, v3_identity)

assertEqual method's arguments should be in
('expected', 'actual') order.

Change-Id: I771c0356518eceded52b045cba2177ab5dd7f4b1
Partial-Bug: #1277104
Fix table name typo in test_sql_upgrade

There was an assertion that group_domain__metadata didn't exist.
The table is called group_domain_metadata so this wasn't asserting
anything useful.

Change-Id: I27e64a2d29ad51b24d42f2dfc9c2143506917410
Merge "Fix table name typo in test_sql_upgrade"
Merge "Fix the order of assertEqual arguments(v3_auth, v3_identity)"