Init migration test, refactorings