Add test for #2292, #2006
Fix content type in migrations.