Add tests for migration 12