Add empty test class
Move some codes from Migration class to Cli class