Fix test migrations for alembic

walk_revisions() method of alembic returns iterator which iterate
from upper to lower revision, therefore we need reorder results
for test migrations.

Change-Id: If05905408c4aebf607d003caf0fca220055df2f7
Merge "Fix test migrations for alembic"