[PATCH v22 2/2] test: Add migration tests