fix bug in modelStoreNeedsMigration method
more testing for migrations