Add test for hardcoded user model in migrations

New migrations need to be manually updated to correctly deal with custom
user models. This test fails if this isn't done.