Created MigrationTestCase, to help the south migrations tests

For issue #TP502