Add a first draft of a test for the migration bug