Add deeper testing for migrations (issue #482)

Signed-off-by: Michal Čihař <michal@cihar.com>