Migration test using mock db metadata and in memory DataStoreFactory