Changed createMigrationTable to return an error.
Added a test case for createMigrationTable