Added test case to check for an intermediate swappable model change in migration state

Ticket: https://code.djangoproject.com/ticket/22563
I could have named it "given" too. Changed to "to_model"